package com.ruoyi.keep.service.impl;

import java.util.List;

import com.ruoyi.keep.domain.GymExperience;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.keep.mapper.GymexperienceMapper;

import com.ruoyi.keep.service.IGymexperienceService;

/**
 * 健身经验Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-18
 */
@Service
public class GymexperienceServiceImpl implements IGymexperienceService 
{
    @Autowired
    private GymexperienceMapper gymexperienceMapper;

    /**
     * 查询健身经验
     * 
     * @param id 健身经验主键
     * @return 健身经验
     */
    @Override
    public GymExperience selectGymexperienceById(Integer id)
    {
        return gymexperienceMapper.selectGymexperienceById(id);
    }

    /**
     * 查询健身经验列表
     * 
     * @param gymexperience 健身经验
     * @return 健身经验
     */
    @Override
    public List<GymExperience> selectGymexperienceList(GymExperience gymexperience)
    {
        return gymexperienceMapper.selectGymexperienceList(gymexperience);
    }

    /**
     * 新增健身经验
     * 
     * @param gymexperience 健身经验
     * @return 结果
     */
    @Override
    public int insertGymexperience(GymExperience gymexperience)
    {
        return gymexperienceMapper.insertGymexperience(gymexperience);
    }

    /**
     * 修改健身经验
     * 
     * @param gymexperience 健身经验
     * @return 结果
     */
    @Override
    public int updateGymexperience(GymExperience gymexperience)
    {
        return gymexperienceMapper.updateGymexperience(gymexperience);
    }

    /**
     * 批量删除健身经验
     * 
     * @param ids 需要删除的健身经验主键
     * @return 结果
     */
    @Override
    public int deleteGymexperienceByIds(Integer[] ids)
    {
        return gymexperienceMapper.deleteGymexperienceByIds(ids);
    }

    /**
     * 删除健身经验信息
     * 
     * @param id 健身经验主键
     * @return 结果
     */
    @Override
    public int deleteGymexperienceById(Integer id)
    {
        return gymexperienceMapper.deleteGymexperienceById(id);
    }
}
